/**
 * 环境配置封装
 */
// 获取当前环境
const env = import.meta.env.VITE_MODE || "prod";
const EnvConfig = {
  dev: {
    baseApi: "/api",
    mockApi:
      "https://www.fastmock.site/mock/a8cb98dc264a00f72afb220dfcf2a1ec/api",
  },
  test: {
    baseApi: "/api",
    mockApi:
      "https://www.fastmock.site/mock/a8cb98dc264a00f72afb220dfcf2a1ec/api",
  },
  prod: {
    baseApi: "/api",
    mockApi: "",
  },
};

export default {
  env,
  mock: false,
  namespace: "vic",
  // @ts-ignore
  ...EnvConfig[env],
};
